<#import "/macro.ftl" as m>
<@m.page_header title='后台' />
<div id="page-content-wrapper">

    <div id="page-title">
        <h3>
        基金管理
        </h3>
        <div id="breadcrumb-right">
            <div class="float-right">
            	<a href="/fundmanage/fundmanageadd" class="btn medium primary-bg">
                    <span class="button-content">
                    <i class="glyph-icon icon-cog float-left"></i>
                    添加
                    </span>
                </a>
            </div>
        </div>
    </div>
    <div id="page-content">
	    <table class="table" id="exp">
	    <thead>
	    <tr>
	    	<th>基金名称</th>
	        <th>基金代码</th>
	        <th>七日年化收益</th>
	        <th>万份收益</th>
	        <th>同期活期收益</th>
	        <th>起点金额</th>
	        <th>基金规模</th>
	        <th>基金类型</th>
	        <th>销售公司</th>
	        <th>基金公司</th>
	        <th>发布时间</th>
	        <th>申购状态</th>
	        <th>上下架</th>
	        <th></th>
	    </tr>
	    </thead>
	    <tbody>
		<#list funds.list as funds>
	    <tr>
	    	<td>${funds.fundName}</td>
	        <td>${funds.fundCode}</td>
	        <td>${funds.annualizedReturn}</td>
	        <td>${funds.accrual}</td>
	        <td>${funds.currentincome}</td>
	        <td>${funds.minAmount}</td>
	        <td>${funds.scale}</td>
	        <td>${funds.type}</td>
	        <td>${funds.saleCompany}</td>
	        <td>${funds.fundManager}</td>
	        <td>${(funds.releaseTime?string("yyyy-MM-dd HH:mm:ss"))!}</td>
	        <td><#if funds.salestate == '1'>在售<#else>未售</#if></td>
	        <td><#if funds.publish == '1'>上架<#elseif funds.publish == '0'>下架<#else>暂停销售</#if></td>
	        <td class="center">
	            <div class="dropdown">
	            <a href="javascript:;" title="" class="btn medium bg-blue" data-toggle="dropdown">
	                                        <span class="button-content">
	                                            <i class="glyph-icon font-size-11 icon-cog"></i>
	                                            <i class="glyph-icon font-size-11 icon-chevron-down"></i>
	                                        </span>
	            </a>
	            <ul class="dropdown-menu float-right">
	
	                <li>
	                    <a href="/fundmanage/fundmanageupdate/${funds.id}" title="">
	                        <i class="glyph-icon icon-edit mrg5R"></i>
	                        修改
	                    </a>
	                </li>
	                <li>
	                	<a href="/fundmanage/up/${funds.id}" class="pub" title="">
	                		<i class="glyph-icon icon-calendar mrg5R"></i>
	                		上架
	                	</a>
	                </li>
                    <li>
                    	<a href="/fundmanage/down/${funds.id}" class="dow" title="">
                    		<i class="glyph-icon icon-calendar mrg5R"></i>
                    		下架
                    	</a>
                    </li>
                    <li>
                    	<a href="/fundmanage/stop/${funds.id}" class="dow" title="">
                    		<i class="glyph-icon icon-calendar mrg5R"></i>
                    		暂停销售
                    	</a>
                    </li>
	            </ul>
	        </div>
	        </td>
	    </tr>
		</#list>
	    </tbody>
	    <tfoot>
	    <tr>
	   	 	<th>基金名称</th>
	        <th>基金代码</th>
	        <th>七日年化收益</th>
	        <th>万份收益</th>
	        <th>同期活期收益</th>
	        <th>起点金额</th>
	        <th>基金规模</th>
	        <th>基金类型</th>
	        <th>销售公司</th>
	        <th>基金公司</th>
	        <th>发布时间</th>
	        <th>申购状态</th>
	        <th>上下架</th>
	        <th></th>
	    </tr>
	    </tfoot>
	    </table>
	</div>
</div> 

</div>

<script type="text/javascript">
$(document).ready(function() {
	<#if msg!=null>
	$.jGrowl("${msg}", {sticky:!1,position:'bottom-right',theme:'bg-green'});
	</#if>
	
	
});

</script>


